//
//  DataModel.m
//  DayByDay
//
//  Created by dllo on 16/5/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DataModel.h"

@implementation DataModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.numOfId = value;
    }
}

- (void)setAction:(NSDictionary *)action {
    _actionModel = [DataActionModel new];
    [_actionModel setValuesForKeysWithDictionary:action];
    
}

- (void)setAlbumRightKey:(NSMutableDictionary *)albumRightKey {
    if (albumRightKey) {
        _albumRightKey = albumRightKey;
        _albumKey = [albumRightKeyModel new];
        [_albumKey setValuesForKeysWithDictionary:_albumRightKey];
    }
}

- (void)setName:(NSString *)name {
    _name = name;
}

@end
